import React from 'react';
import { Button } from 'antd';
import './MyTitle.scss'
// 将表头进行二次封装
interface Props {
    title?: string
    children?: any
}
function MyTitle(props: Props) {
    return (
        <div>
            <div>
                <div className="systemTitle">
                    <div className="left">
                        <div className="shape"></div>
                        <div className="text">{props.title}</div>
                    </div>
                    <div className="right">
                        {/* 放置插槽 */}
                        {props.children}
                    </div>
                </div>
            </div>
        </div>
    );
}

export default MyTitle;